<!DOCTYPE html>
<html lang="">
<head>
    <title>Wake-on-LAN网络唤醒</title>
    <link rel="stylesheet" href="css/bootstrap_4.6.0.min.css">
    <script type="text/javascript" src="js/3.axios.min.js"></script>
    <script type="text/javascript" src="js/jquery-3.6.0.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.bundle_4.6.0.min.js"></script>
    <script type="text/javascript" src="js/index.min.js"></script>
</head>
<body onload="select_mac_address()">
<div class="container">
    <div class="row">
        <div class="col-sm-8 offset-sm-2">
            <h2 class="text-center">Wake-on-LAN网络唤醒</h2>
            <form>
                <div class="form-group">
                    <label for="mac_address">MAC地址</label>
                    <div class="input-group">
                        <input type="text" class="form-control" id="mac_address" name="mac_address"
                               placeholder="输入要唤醒的MAC地址" required>
                        <div class="input-group-append">
                            <button class="btn btn-outline-secondary dropdown-toggle" type="button"
                                    data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
                            <div class="dropdown-menu">
                                <!-- 可以在此处添加局域网内的电脑，value是mac地址 -->
                                <a class="dropdown-item" href="#" value="2C:FD:A1:BF:32:FC">Desktop-B350台式电脑</a>
                            </div>
                        </div>
                    </div>
                </div>
                <button type="button" class="btn btn-primary btn-block" onclick="post_submit()">唤醒</button>
            </form>
        </div>
    </div>
</div>
</body>
</html>